<?php

namespace ticket\modules\frontend\models;

use Yii;

/**
 * This is the model class for table "tk_ticket_code".
 *
 * @property int $id
 * @property string $ticket_code
 * @property int $state
 * @property string $create_time 创建时间
 */
class TicketCode extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'tk_ticket_code';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['state'], 'integer'],
            [['create_time'], 'safe'],
            [['ticket_code'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'ticket_code' => 'Ticket Code',
            'state' => 'State',
            'create_time' => 'Create Time',
        ];
    }
}
